package cn.exrick.xboot.base.vo

import cn.exrick.xboot.core.common.constant.CommonConstant
import cn.exrick.xboot.core.common.utils.NameUtil
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import javax.validation.constraints.NotNull
import javax.validation.constraints.Pattern
import javax.validation.constraints.Size


@ApiModel("员工app信息")
data class EmployeeInfoVo(


        var id: String? = null,

        @ApiModelProperty(value = "用户头像")
        var avatar: String? = CommonConstant.USER_DEFAULT_AVATAR,

        @ApiModelProperty(value = "用户名/昵称/姓名")
        var nickname: @NotNull(message = "不能为空") @Size(max = 20, message = "昵称长度不能超过20") String? = null,

        @ApiModelProperty("企业名称")
        var enterpriseName: String? = null,

        @ApiModelProperty(value = "所属部门id")
        var departmentId: String? = null,

        @ApiModelProperty(value = "所属部门name")
        var departmentName: String? = null,

        @ApiModelProperty("岗位")
        var jobId: String? = null,

        @ApiModelProperty("岗位名称")
        var jobName: String? = null,

        @ApiModelProperty(value = "手机")
        var mobile: @Pattern(regexp = NameUtil.regMobile, message = "11位手机号格式不正确") String? = null,

        @ApiModelProperty(value = "邮箱")
        var email: @Pattern(regexp = NameUtil.regEmail, message = "邮箱格式不正确") String? = null,

        @ApiModelProperty(value = "区域id")
        var areaId: String? = null,

        @ApiModelProperty("区域名称")
        var areaName: String? = null,

        @ApiModelProperty("自拍照")
        var selfPic: String? = "",

        @ApiModelProperty("生活照")
        var lifePic: String? = "",

        @ApiModelProperty("全家福")
        var familyPic: String? = "",

        @ApiModelProperty("角色名")
        var roleName: String? = null

)